import request from '@/utils/request'

// 租户下的事件列表
export function getList(data = {}) {
  return request({
    url: '/eflow/work-event/list',
    method: 'get',
    params: data
  })
}

// 我提交的工作
export function getMyList(data = {}) {
  return request({
    url: '/eflow/work-event/my',
    method: 'get',
    params: data
  })
}


// 我的任务
export function getMyTasks(data = {}) {
  return request({
    url: '/eflow/work-event/tasks',
    method: 'get',
    params: data
  })
}

// 事件详情
export function getDetail(data = {}) {
  return request({
    url: '/eflow/work-event/detail',
    method: 'get',
    params: data
  })
}
